You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > Equal Method > TVec.Equal Method ([In] TMtxVec, double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVec.Equal Method ([In] TMtxVec, double)

Compares vector elements and returns true if vectors are equal.

Syntax
C#
Visual Basic
public bool Equal([In] TMtxVec Vec, double Tolerance);

Compares vector elements and returns true if vectors are equal, that is if all elements match in position and value. The Tolerance parameter defines the comparison tolerance. The maximum difference between elements may not exceed: +/-Tolerance.

var A,B: TMtx; c: boolean; begin CreateIt(A,B); A.SetIt(2,2,false,[1,2, 2,4]); // 2x2 real matrix B.SetIt(2,2,false,[1,2, 2,4]); // 2x2 real matrix c := A.Equal(B,1e-8); // Check for differences bigger than 0.00000001 c := A.Equal(B); // Check for exact match FreeIt(A,B); end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!